home *** CD-ROM | disk | FTP | other *** search
- Path: news.fsu.edu!xi!colvin
- From: colvin@xi.cs.fsu.edu (Joshua Colvin)
- Newsgroups: comp.lang.c++
- Subject: Re: If statements, HELP!!
- Date: 14 Jan 1996 07:07:57 GMT
- Organization: FSU Computer Science Department
- Message-ID: <4daa4d$1pb@news.fsu.edu>
- References: <956_9601132330@medtechnet.com>
- NNTP-Posting-Host: xi.cs.fsu.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
-
- Try this. If you want ALL the comands under the else to be executed when
- the first test fails this should work; if you don't then just take out
- the second pair of braces.
-
- {
- if ((SysopPercent > UserPercents) && (SysTime < LockTIme))
- TDDisplayFile("LOCK.ANS");
- else
- {
- TBDoors_Tmp.Open();
- TBDoors_Tmp.Read();
- TBDoors_Tmp.WhereTheDoorWasCalledFrom(5);
- TBDoors_Tmp.Write();
- TBDoors_Tmp.Close();
- }
- }
-
- Hope that is what you wanted.
- Joshua Colvin
- colvin@cs.fsu.edu
-